import QtQuick 1.1

Item {
    id: m_text_input
    width: 200
    height: 62

    property string text: ""
    property string color_bg: "#ffffff"
    property string color_border: "#000000"
    property string color_text: "#ffffff"
    property int text_size: 33

//    Binding
//    {
//        target: m_text_input
//        property: "text"
//        value: text_input_main.text
//    }

    Rectangle {
        id: rectangle_bg
        color: color_bg
        border.width: 2
        border.color: color_border
        anchors.fill: parent
    }

    TextInput {
        id: text_input_main
        y: 21
        text: ""
        anchors.right: parent.right
        anchors.rightMargin: 5
        anchors.left: parent.left
        anchors.leftMargin: 5
        anchors.verticalCenterOffset: 0
        anchors.verticalCenter: parent.verticalCenter
        font.pixelSize: 33
        color: color_text

        onTextChanged:
        {
            m_text_input.text = text_input_main.text;
        }
    }
}
